<div class="row">
	<div class="col-sm-12">
		<div class="space"></div>
        
		<table width="100%" class="table table-striped table-bordered table-hover">
			<tr>
			    <th height="30">订单号</th>
				<th height="30">购买用户</th>
				<th height="30">课程分类</th>
				<th height="30">课程列表</th>
				<th height="30">课包</th>
				<th height="30">数量</th>
				<th height="30">金额</th>
				<th height="30">支付状态</th>
				<th height="30">支付方式</th>
				<th height="30">支付时间</th>
				<th height="30">课时</th>
				<th height="30">剩余课时</th>
				<th height="30">操作</th>
			</tr>
			<?php if(!empty($order_list)){foreach ($order_list as $key=>$val){?>
			<tr>
			  <td height="30"><?php echo $val['id']?></td>
			  <td height="30"><?php echo $member_list[$val['member_id']]['baby_name'];?></td>
			  <td height="30"><?php echo $course_cate_list[$val['course_cate_id']]['title'];?></td>
			  <td height="30"><?php echo $course_list[$val['course_list_id']]['title'];?></td>
			  <td height="30"><?php echo $course_package_list[$val['course_package_id']]['title'];?></td>
			  <td height="30"><?php echo $val['course_package_num']?></td>
			  <td height="30"><?php echo $val['pay_fee']?></td>
			  <td height="30"><font color="<?php echo $val['status'] == 3?'#FF0000':'#000000'?>"><?php echo $order_status[$val['status']]?></font></td>
			  <td height="30"><?php echo $order_pay_way[$val['pay_way']]?></td>
			  <td height="30"><?php echo $val['pay_time']?></td>
			  <td height="30"><?php echo $val['hours']?></td>
			  <td height="30"><?php echo $val['surplus_hours']?></td>
			  <td height="30">
			  <a href='/nursery/order/info?id=<?php echo $val['id']?>&per_page=<?php if(!empty($_REQUEST['per_page']))echo $_REQUEST['per_page']?>'>详情</a>
			  <?php if($val['status'] == 3){?>
			   | <a href='/nursery/order/update?id=<?php echo $val['id']?>&status=1' onclick="if(confirm('确定要修改吗？')){return true;}else{return false;};">确认</a> | 
			   <a href='/nursery/order/update?id=<?php echo $val['id']?>&status=4' onclick="if(confirm('确定要修改吗？')){return true;}else{return false;};">拒绝</a>
			  <?php }?>
			  </td>
		  </tr>
		  <?php }}else{?>
			<tr>
			  <td height="30" colspan="13"><div align="center"><?php echo $error;?></div></td>
		  </tr>
		  <?php }?>
	  </table>
		
		<div class="float_right">
			<?php echo $pagelink;?>
		</div>
	</div>
</div>
<!--content-->